Skip to main content
PUT
Update Policy

Authorizations

Authorization
string
header
required

Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.

Path Parameters

id
integer<int32>
required

The id of the referenced Warehouse.

policy_id
integer<int32>
required

The id of the referenced ReplenishmentPolicy.

Body

application/json

Properties of a Replenishment Policy to change. Only the properties present in the body are applied; an absent one keeps its stored value rather than being cleared. The warehouse cannot be changed, and every derived or index-owned property of ReplenishmentPolicy is rejected if present.

name
string

The user-visible Policy name; must be unique within the warehouse.

Required string length: 1 - 255
Example:

"Fast Movers - Forward Pick"

is_active
boolean

Whether the Policy participates in Product evaluation. Changing this invalidates the warehouse's published Replenishment results.

sort_order
integer

Policy precedence; lower values are evaluated first, with id as the tie-break.

Required range: 0 <= x <= 65535
Example:

10

merchant_ids
integer[] | null

Merchant IDs the Policy selects. null or an empty list means every Merchant.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_ids
integer[]

Product Profile IDs the Policy selects. An empty list means Product Profiles do not restrict the subject.

Maximum array length: 100
Required range: x >= 1
Example:
product_profile_match_mode
enum<string>

How the selected Product Profiles are matched against a Product. The none mode requires at least one Product Profile.

Available options:
any,
all,
none
handling_class_ids
integer[]

Handling Class IDs the Policy selects. Each must be assigned to this warehouse. An empty list means Handling Classes do not restrict the subject.

Maximum array length: 100
Required range: x >= 1
Example:
location_profile_id
integer<int32>

The id of the Location Profile supplying the target group. It must belong to this warehouse and already have a published revision.

Required range: x >= 1
Example:

3

demand_period_days
integer

The Product Velocity window used to derive daily demand. Must equal one of the configured Product Velocity periods.

Required range: 1 <= x <= 65535
Example:

30

demand_context_mode
enum<string>

all keeps the Policy's compatible order demand; include counts exactly the contexts in demand_contexts and requires at least one. Omitted keeps the stored mode.

Available options:
all,
include
demand_contexts
enum<string>[]

The demand contexts an include Policy counts. Replaces the stored list; omitted keeps it. The list is kept, but has no effect, while the mode is all. other is reserved for later demand categories and is not emitted by classifier v1, so a selection of it alone measures no demand.

Maximum array length: 7
Available options:
customer_fulfillment,
bulk_fulfillment,
kitting,
transfer,
external_freight,
other,
unknown
trigger_doi_days
number

The fallback coverage threshold used when no Slot Type DOI band resolves.

Required range: 0 <= x <= 999999.9999
Example:

7

target_doi_days
number

The target coverage used to calculate the required replenishment quantity. Must not be lower than trigger_doi_days; equal values are accepted.

Required range: 0 <= x <= 999999.9999
Example:

21

emergency_floor_qty
number

Critical buffer quantity added to immediate demand when a typed Emergency is active. It does not activate Emergency by itself. Zero adds no buffer.

Required range: 0 <= x <= 99999999.9999Must be a multiple of 0.0001
doi_basis
enum<string>

Whether to use only the Policy DOI band or resolve DOI by the resolved Slot Type. Changing the basis to policy clears all stored Slot Type DOI overrides.

Available options:
policy,
slot_type
move_in_level
enum<string>

The Product Unit Level a task moves in when the Product's override stores no move size, resolved as on create. Omitted keeps the stored level. A change re-plans the open tasks it can size at the next refresh: a waiting task whose move unit changed is replaced, and a released, unclaimed one whose move unit changed is canceled. A manual request then gets a successor for its remaining quantity in whole new move units, and an automatic need is dispatched again in the current unit. Tasks whose move unit is unchanged, and claimed work, are not interrupted.

Available options:
whole_unit,
inner_pack,
case,
pallet
slot_type_doi_overrides
ReplenishmentPolicySlotDoiOverride · object[]

A list of Policy-specific Slot Type DOI bands used only when doi_basis is slot_type. When that basis remains selected, omission preserves the stored overrides and an explicit empty list clears them. The list is ignored and cleared when the effective basis is policy.

Response

OK - The operation completed successfully and there is no response body.